package test;

public class PE2 {
	
	Integer i;
	String data;
	
	public Integer run(Integer p){
		data = "New produced data: " + i.toString();
//		try {
//			Thread.sleep(5);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
		return 2;
	}
	
	public void setdata(Object o){
		i = (Integer)o;
	}
	
	public Object getproducedData(){
		return data;
	}
	
	public Object getloopData(){
		return i;
	}
}